num = int(input("请输入一个四位数"))
a = num //1000
b = num%1000//100
c = num%100//10
d = num%10

print(f"个位数是：{d}")
print(f"十位数是：{c}")
print(f"百位数是：{b}")
print(f"千位数是：{a}")